Integrand size = 25, antiderivative size = 75 \[ \int \frac {\sqrt {\cos (c+d x)}}{\sqrt {3-2 \cos (c+d x)}} \, dx=\frac {3 \cot (c+d x) \operatorname {EllipticPi}\left (-\frac {1}{2},\arcsin \left (\frac {\sqrt {3-2 \cos (c+d x)}}{\sqrt {\cos (c+d x)}}\right ),-\frac {1}{5}\right ) \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)}}{\sqrt {5} d} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 75, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.040, Rules used = {2887} \[ \int \frac {\sqrt {\cos (c+d x)}}{\sqrt {3-2 \cos (c+d x)}} \, dx=\frac {3 \cot (c+d x) \sqrt {1-\sec (c+d x)} \sqrt {\sec (c+d x)+1} \operatorname {EllipticPi}\left (-\frac {1}{2},\arcsin \left (\frac {\sqrt {3-2 \cos (c+d x)}}{\sqrt {\cos (c+d x)}}\right ),-\frac {1}{5}\right )}{\sqrt {5} d} \]
[In]
[Out]
Rule 2887
Rubi steps \begin{align*} \text {integral}& = \frac {3 \cot (c+d x) \operatorname {EllipticPi}\left (-\frac {1}{2},\arcsin \left (\frac {\sqrt {3-2 \cos (c+d x)}}{\sqrt {\cos (c+d x)}}\right ),-\frac {1}{5}\right ) \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)}}{\sqrt {5} d} \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.75 (sec) , antiderivative size = 128, normalized size of antiderivative = 1.71 \[ \int \frac {\sqrt {\cos (c+d x)}}{\sqrt {3-2 \cos (c+d x)}} \, dx=\frac {2 i \sqrt {\cos (c+d x)} \left (\operatorname {EllipticF}\left (i \text {arcsinh}\left (\sqrt {5} \tan \left (\frac {1}{2} (c+d x)\right )\right ),-\frac {1}{5}\right )-2 \operatorname {EllipticPi}\left (\frac {1}{5},i \text {arcsinh}\left (\sqrt {5} \tan \left (\frac {1}{2} (c+d x)\right )\right ),-\frac {1}{5}\right )\right ) \sqrt {1+5 \tan ^2\left (\frac {1}{2} (c+d x)\right )}}{d \sqrt {30-20 \cos (c+d x)} \sqrt {\frac {\cos (c+d x)}{1+\cos (c+d x)}}} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 139 vs. \(2 (65 ) = 130\).
Time = 5.62 (sec) , antiderivative size = 140, normalized size of antiderivative = 1.87
method | result | size |
default | \(-\frac {\sqrt {2}\, \left (F\left (\cot \left (d x +c \right )-\csc \left (d x +c \right ), i \sqrt {5}\right )-2 \Pi \left (\cot \left (d x +c \right )-\csc \left (d x +c \right ), -1, i \sqrt {5}\right )\right ) \sqrt {-\frac {2 \left (-3+2 \cos \left (d x +c \right )\right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {3-2 \cos \left (d x +c \right )}\, \left (1+\cos \left (d x +c \right )\right )}{d \sqrt {\cos \left (d x +c \right )}\, \left (-3+2 \cos \left (d x +c \right )\right )}\) | \(140\) |
[In]
[Out]
\[ \int \frac {\sqrt {\cos (c+d x)}}{\sqrt {3-2 \cos (c+d x)}} \, dx=\int { \frac {\sqrt {\cos \left (d x + c\right )}}{\sqrt {-2 \, \cos \left (d x + c\right ) + 3}} \,d x } \]
[In]
[Out]
\[ \int \frac {\sqrt {\cos (c+d x)}}{\sqrt {3-2 \cos (c+d x)}} \, dx=\int \frac {\sqrt {\cos {\left (c + d x \right )}}}{\sqrt {3 - 2 \cos {\left (c + d x \right )}}}\, dx \]
[In]
[Out]
\[ \int \frac {\sqrt {\cos (c+d x)}}{\sqrt {3-2 \cos (c+d x)}} \, dx=\int { \frac {\sqrt {\cos \left (d x + c\right )}}{\sqrt {-2 \, \cos \left (d x + c\right ) + 3}} \,d x } \]
[In]
[Out]
\[ \int \frac {\sqrt {\cos (c+d x)}}{\sqrt {3-2 \cos (c+d x)}} \, dx=\int { \frac {\sqrt {\cos \left (d x + c\right )}}{\sqrt {-2 \, \cos \left (d x + c\right ) + 3}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {\cos (c+d x)}}{\sqrt {3-2 \cos (c+d x)}} \, dx=\int \frac {\sqrt {\cos \left (c+d\,x\right )}}{\sqrt {3-2\,\cos \left (c+d\,x\right )}} \,d x \]
[In]
[Out]